package com.demo.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * HIS用户表
 * </p>
 *
 * @author Helen
 * @since 2020-09-09
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@ApiModel(value = "THisMember对象", description = "HIS用户表")
public class THisMember {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    @ApiModelProperty(value = "登录名")
    private String userName;

    @ApiModelProperty(value = "登录密码")
    private String password;

    @ApiModelProperty(value = "最后一次登录时间")
    private Integer lastLoginTime;

    private Integer lastLoginIp;

    @ApiModelProperty(value = "注册时间")
    private Integer createTime;

    @ApiModelProperty(value = "是否允许用户登录( 1 是  2否) 3 删除")
    private Boolean status;

    @ApiModelProperty(value = "医院id，用于区分用户类型及其医生所属诊所")
    private Integer pId;

    @ApiModelProperty(value = "1,管理员，2，医生，3.护士，4，挂号员，5，收费员6，发药员，7，财务8，其他人员")
    private Integer type;

    @ApiModelProperty(value = "科室id")
    private Integer departmentId;

    @ApiModelProperty(value = "医生级别 0:其他  1:主治医师  2:副主任医师  3:主任医师  4:医士  5:医师  6:助理医师  7:实习医师  8:主管护师  9:护师  10:护士  11:医师助理  12:研究生  13:随访员 ")
    private Integer rank;

    @ApiModelProperty(value = "二维码标识")
    private Integer qrid;

    @ApiModelProperty(value = "用户授权登录openid")
    private String openid;

    @ApiModelProperty(value = "用户余额")
    private BigDecimal moneyBalance;

    @ApiModelProperty(value = "冻结中余额")
    private BigDecimal moneyLock;

    @ApiModelProperty(value = "邀请码")
    private String recommentCode;

    @ApiModelProperty(value = "修改时间")
    private Integer updateTime;


}
